/**
 * @author CT
 * @email 994599447@qq.com
 * @date 2017.8.14
 */

import * as types from '../actions/actionTypes';
const initialState = {
   remindDatas: [],
   isData: false,
   atTopRemindData: undefined,
};

let homeReducer = (state = initialState, action) => {
    switch (action.type) {
         case types.kRemindDatas:
            return {
                ...state,
                ...action,
                remindDatas: action.remindDatas,
                isData: action.isData,
            };
        case types.kAtTopRemindData:
            return {
                ...state,
                ...action,
                atTopRemindData: action.atTopRemindData,
            };
        default:
            return state;
    }
};


export default homeReducer;